package com.jerry.db.service;

import com.jerry.db.dao.BootUserInfoMapper;
import com.jerry.db.domain.BootRoleInfoExample;
import com.jerry.db.domain.BootUserInfo;
import com.jerry.db.domain.BootUserInfoExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BootUserInfoService {
    @Resource
    private BootUserInfoMapper bootUserInfoMapper;

    public List<BootUserInfo> findByAccount(String account){
        BootUserInfoExample bootUserInfoExample =  new BootUserInfoExample();
        bootUserInfoExample.or().andIsDelEqualTo(false).andUserNameEqualTo(account);
        List<BootUserInfo>  bootUserInfos =  bootUserInfoMapper.selectByExample(bootUserInfoExample);
        return  bootUserInfos;
    }
}
